﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="EzDesk.DesktopClient.CloseButton"
	x:Name="UserControl"
	d:DesignWidth="15" d:DesignHeight="13.333">
	<UserControl.Resources>
		<Style x:Key="CloseFeedItemButtonStyle" TargetType="{x:Type Button}">
			<Setter Property="Cursor" Value="Hand"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<ContentPresenter x:Name="Presenter" Margin="3,2"   TextBlock.Foreground="{TemplateBinding TextElement.Foreground}"  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Button FontFamily="Webdings" FontSize="8" Foreground="#FFB5B5B6" Style="{DynamicResource CloseFeedItemButtonStyle}" BorderThickness="0" Padding="0" Margin="0,0,0,-0.001" d:LayoutOverrides="Height" Background="{x:Null}">
			<TextBlock Text="r" FontFamily="Webdings" Foreground="{Binding Foreground, ElementName=UserControl}" FontSize="9.333"/>
		</Button>
	</Grid>
</UserControl>